@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}
body { color: #000; font-family: 'Roboto', sans-serif; }

.video-background {
  position: relative;
  width: 100%; /* changed from 100vw to 100% to avoid horizontal overflow */
  height: 60vh;
  min-height: 200px;
  max-height: 500px;
  object-fit: cover;
  margin-right: 0px;
}

nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* changed from 100vw to 100% */
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(0, 0, 0, 0.7); /* semi-transparent black */
  box-shadow: none;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
nav .logo {
  margin-left: 0;
  color: #ffffff;
}
/* Group containing main logo and optional partner logos */
.logo-group {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: 16px; /* keep a little breathing room from the viewport edge */
}
.logo-group .logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.00);
  display: block;
}
.partner-logos {
  display: flex;
  gap: 50px;
  align-items: center;
}
.partner-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.95;
  border-radius: 8px;
  background: rgba(255,255,255,0.00);
}
nav .nav-links {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  margin: 0;
  padding-right: 10%;
}
nav .nav-link {
  color: #ffffff;
  margin: 0 16px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.2s;;
}
nav .nav-link:hover {
  color: #fa9b2f;
}

/* Main content layout */
.main-content {
  width: 90%;
  margin: 40px auto 0 auto;
  padding-top: 90px; /* space for fixed nav */
  display: flex;
  flex-direction: column;
  gap: 1%px;
}

/* Row for events and news */
.content-row {
  display: flex;
  gap: 1%px;
  align-items: flex-start;
}

/* Upcoming Events */
.upcoming-events {
  flex: 2;
}
.upcoming-events h2 {
  margin-top: -32px; /* pull header higher */
  margin-bottom: 24px; /* more space below the header */
  padding-bottom: 8px;
  color: #111;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
}

@media (max-width: 700px) {
  .upcoming-events h2 {
    font-size: 28px;
    margin-top: -10px;
  }
}
.event-cards {
  display: flex;
  gap: 5%; /* larger, even spacing between cards */
  flex-wrap: nowrap;
  justify-content: center; /* center the row and keep gaps even */
  padding-right: 5%;
}
.event-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 0%;
  transition: transform 0.2s;
}
.event-card:hover {
  transform: translateY(-6px) scale(1.03);
}
.event-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}
.event-info {
  margin-top: 12px;
  text-align: center;
}
.event-btn1 {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: #fd4300;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.event-btn1:hover {
  background: #fd43009d;
}

.event-btn2 {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: #684848;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.event-btn2:hover {
  background: #68484894;
}

.event-btn3 {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: #15abfa;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.event-btn3:hover {
  background: #15aafa86;
}

.event-btn4 {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: #3278ac;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.event-btn4:hover {
  background: #e87c0e;
}

/* News Panel */
.news-panel {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  width: 40px;
  min-width: 280px;
  max-width: 512px;
  min-height: 520px;
  max-height: 720px;
  padding: 10px 28px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
}

.news-panel h3 {
  color: #111;
  font-size: 28px; 
  font-weight: 700;
  margin: 0;
}

.news-controls {
  display: flex;
  gap: 8px;
}

.news-nav-btn {
  background: #fa9b2f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.news-nav-btn:hover:not(:disabled) {
  background: #e87c0e;
  transform: scale(1.1);
}

.news-nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.news-container {
  width: 100%;
  overflow: hidden;
  flex: 1;
  position: relative;
}

.news-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.news-item {
  min-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
}

.news-item.active {
  opacity: 1;
  transform: translateX(0);
}

.news-item img {
  width: 100%;
  height: 50%; 
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 14px;
}

.news-item p {
  color: #333;
  font-size: 16px;
  text-align: left;
  line-height: 1.45;
  margin: 0 0 12px 0;
  flex: 1;
}

.news-date {
  color: #777;
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}

.news-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fa9b2f;
  transform: scale(1.2);
}
.news-cta {
  margin-top: auto;
  align-self: stretch;
  display: inline-block;
  text-align: center;
}

/* Showcase Area */
.showcase {
  margin-top: 32px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 32px 24px;
  text-align: center;
}
.showcase h2 {
  margin-bottom: 24px;
  color: #222;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}
.showcase-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.showcase-gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.showcase-carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #fff;
  padding: 16px 0;
}
.showcase-carousel .carousel-track {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 200%; 
}

.showcase-carousel .carousel-track.marquee {
  animation: marquee var(--marquee-duration, 20s) linear infinite;
}
.showcase-carousel:hover .carousel-track.marquee,
.showcase-carousel:focus-within .carousel-track.marquee {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(calc(-50% - var(--gap, 0px)),0,0); }
}

.slide-set {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 24px;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 50%; 
}

.showcase-carousel::before,
.showcase-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  pointer-events: none;
  z-index: 2;
}
.showcase-carousel::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
}
.showcase-carousel::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
}

.showcase-carousel .carousel-item {
  width: 100%;
  height: 240px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10%;
}
.showcase-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-btn { display: none; }

@media (max-width: 900px) {
  .slide-set { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 160px); }
}
@media (max-width: 480px) {
  .slide-set { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, 120px); }
}
.showcase-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.showcase-btn {
  padding: 12px 28px;
  background: #fa9b2f;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background 0.2s;
  margin-bottom: 0;
}
.showcase-btn.secondary {
  background: #222;
}
.showcase-btn:hover {
  background: #e87c0e;
}
.showcase-btn.secondary:hover {
  background: #444;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
  .content-row {
    flex-direction: column;
    gap: 400px;
  }
  .news-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
  }
  .event-cards {
    justify-content: center;
  }
}

@media (max-width: 1080px) {
  nav .nav-links {
    flex-direction: column;
    background: rgba(0,0,0,0.7);
    position: relative;
    top: 70px;
    width: 100vw;
    display: block;
  }
  nav.open .nav-links {
    display: flex;
  }
}

/* Site footer */
.site-footer {
  background:#000;
  color: #333;
  padding: 40px 0 12px 0;
  margin-top: 48px;
}
.site-footer .footer-inner {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.site-footer .footer-inner.small { grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; }
.site-footer .footer-col h4 { margin-bottom: 12px; color: #fff; }
.site-footer .footer-about p { color: #ddd; max-width: 420px; }
.footer-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: #ddd; text-decoration: none; }
.footer-newsletter-form { display: flex; gap: 8px; align-items: center; }
.footer-newsletter-form input[type="email"] { padding: 10px 12px; border-radius: 8px; border: none; width: 100%; max-width: 320px; }
.subscribe-btn { padding: 10px 16px; border-radius: 8px; background: #fa9b2f; color: #fff; border: none; cursor: pointer; }
.subscribe-note { color: #999; margin-top: 8px; }
.social-links { display: flex; gap: 12px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 12px 0; margin-top: 20px; }
.footer-legal a { color: #bbb; text-decoration: none; margin-left: 8px; }

@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; }
  .site-footer .footer-inner.small { grid-template-columns: 1fr; text-align: center; }
  .footer-newsletter-form { flex-direction: column; align-items: stretch; }
}